<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@ taglib prefix="C" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>添加用户-CAS官网</title>
		<link rel="stylesheet" href="css/iconfont.css" />
		<link rel="shortcut icon" href="img/favicon.ico" />
		<link rel="stylesheet" href="css/admin.css" />
		<link rel="stylesheet" href="css/changepassword.css" />
		<script type="text/javascript" src="js/jquery-3.2.0.min.js"></script>
		<script type="text/javascript" src="js/admin.js"></script>
		<script type="text/javascript" src="js/adduser.js"></script>
	</head>

	<body>
		<div class="g-left">
			<ul class="m-nav">
				<C:forEach items="${menulist }" var="menu">
					<C:if test="${menu.permission<=role && menu.permission!=0 }">
						<C:choose>
							<C:when test="${menu.name == '用户管理' }">
								<li class="m-active">
									<span><i class="icon iconfont">&#xe612;</i>${menu.name }<i class="icon iconfont">&#xe601;</i></span>
									<ul>
										<C:forEach items="${menulist }" var="menu1">
											<C:if test="${menu.id == menu1.pid }">
												<C:choose>
													<C:when test="${menu1.permission<=role && menu.permission!=0 && menu1.name=='添加用户'}">
														<li class="m-li-active">
															<a href="${menu1.url }">${menu1.name }</a>
														</li>
													</C:when>
													<C:otherwise>
														<li>
															<a href="${menu1.url }">${menu1.name }</a>
														</li>
													</C:otherwise>
												</C:choose>
											</C:if>
										</C:forEach>
									</ul>
								</li>
							</C:when>
							<C:otherwise>
								<C:if test="${menu.pid == 0}">
									<li>
										<span><i class="icon iconfont">&#xe612;</i>${menu.name }<i class="icon iconfont">&#xe601;</i></span>
										<ul>
											<C:forEach items="${menulist }" var="menu1">
												<C:if test="${menu.id == menu1.pid && menu1.permission<=role && menu.permission!=0}">
													<li>
														<a href="${menu1.url }">${menu1.name }</a>
													</li>
												</C:if>
											</C:forEach>
										</ul>
									</li>
								</C:if>
							</C:otherwise>
						</C:choose>
					</C:if>
				</C:forEach>
			</ul>
		</div>
		<div class="g-right">
			<div class="g-status">
				<i class="icon iconfont m-switch">&#xe606;</i>
				<div>
					<i class="icon iconfont m-switch">&#xe602;</i>
					<a href="index.jsp">前台</a>
					<i class="icon iconfont m-switch">&#xe6a0;</i>
					<span>管理员:</span>
					<a href="">张三</a>
					<i class="icon iconfont m-switch">&#xe60e;</i>
					<a href="">安全退出</a>
				</div>
			</div>
			<div class="g-mn">
					<div class="m-breadcrumb">
						<span><a href="">首页</a></span>
						<span>></span>
						<span><a href="">个人中心</a></span>
						<span>></span>
						<span><a href="">添加用户</a></span>
					</div>
					<div class="m-form-content">
						<form>
							<div class="m-input">
								<span>用户名：</span>
								<input type="text" name="username"  placeholder="用户名" />
								<span><i class="icon iconfont">&#xe624;</i>请输入用户名码</span>
							</div>
							<div class="m-input">
								<span>用户密码：</span>
								<input type="text" name="userpassword" placeholder="用户密码" />
								<span><i class="icon iconfont">&#xe624;</i>请输入用户密码</span>
							</div>
							<div class="m-input">
								<span>用户类型：</span>
								<select name="role">
									<option value="2">管理员</option>
									<option value="1">会员</option>
								</select>
								<span><i class="icon iconfont">&#xe624;</i>请选择用户类型</span>
							</div>
							<div class="m-input">
								<input type="submit" value="保存" />
								<input type="reset" value="重置" />
							</div>
						</form>
					</div>
			</div>
		</div>

	</body>

</html>